$a: 5px;
header {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 10px 0 20px;
  height: 50px;
  .wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    .logo {
      a {
        display: block;
        width: 127px;
        height: 50px;
        background: url(../../img/ls_head.png) no-repeat;
      }
    }
    nav {
      height: 100%;
      flex: 0.7;
      ul {
        display: flex;
        height: 100%;
        overflow: hidden;
        align-items: flex-end;
        li {
          height: 25px;
          margin-bottom: $a;
          flex: 1;
          a {
            display: block;
            height: 100%;
            font-size: 14px;
            line-height: 25px;
            text-align: center;
            color: #747474;
            &:hover {
              color: #0092d8;
            }
          }
        }
      }
    }
    //搜索框
    .seach-box {
      flex: 0.22;
      position: relative;
      margin-bottom: $a;
      input {
        width: 100%;
        height: 28px;
        line-height: 28px;
        background-color: #f4f4f4;
        border: 0;
        border-radius: 5px;
      }
      span {
        position: absolute;
        right: 10px;
        top: 8px;
        color: #999999;
        cursor: pointer;
      }
    }
    .user_list {
      position: relative;
      // margin-bottom: $a;
      // margin: 5px;
      display: flex;
      justify-content: end;
      &:hover ul {
        display: block;
      }
      .iconfont_user {
        // display: none;
        // position: relative;
        margin-bottom: 2px;
        padding:5px;
        font-size: 22px;
        color: #999999;
        i {
          display: block;
          background: url(../../img/ls_head.png) no-repeat;
          background-position: -52px -56px;
          width: 20px;
          height: 20px;
        }
      }
      .user_img {
        display: none;
        width: 30px;
        height: 30px;
        img{
          width: 100%;
          border-radius: 50%;
        }
      }
      ul {
        display: none;
        position: absolute;
        top: 25px;
        right: 0px;
        width: 118px;
        background-color: #fff;
        z-index: 50;
        border: 1px solid #eee;
        padding: 10px 0;
        li {
          a {
            display: block;
            height: 30px;
            line-height: 30px;
            font-size: 12px;
            color: #000;
            text-align: center;
            cursor: pointer;
            &:hover {
              color: #0092d8;
              background-color: #f3f3f3;
            }
          }
        }
        .login_item{
          display: none;
        }
      }
    }
    .user_cart {
      position: relative;
      margin-bottom: 3px;
      &:hover div {
        display: block;
      }
      .iconfont_cart {
        color: #999999;
        font-size: 24px;
        // margin-bottom: 5px;
        display: flex;
        justify-content: end;
        span {
          margin-left: 4px;
          font-size: 14px;
          margin-top: 6px;
        }
        i {
          display: block;
          background: url(../../img/ls_head.png) no-repeat;
          background-position: -27px -56px;
          width: 20px;
          height: 20px;
        }
      }
      div {
        display: none;
        position: absolute;
        width: 316px;
        text-align: center;
        right: 0;
        top: 25px;
        border: 1px solid #eee;
        background-color: #fff;
        z-index: 10;
        padding: 45px 0;
        p {
          color: #000;
          font-size: 12px;
          line-height: 12px;
          a {
            color: #0092d8;
          }
        }
        .cart_icon_tip{
          display: none;
        }
      }
    }
  }
  .nav-items {
    display: none;
    position: absolute;
    width: 100%;
    height: 180px;
    background-color: #fff;
    top: 81px;
    ul {
      // margin: auto;
      // width: 1000px;
      display: flex;
      height: 100%;
      align-items: center;
      justify-content: center;
      li {
        height: 140px;
        margin: 0 35px;
        img {
          width: 96px;
          height: 96px;
          vertical-align: middle;
        }
        p {
          width: 96px;
          height: 20px;
          font-size: 14px;
          line-height: 20px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
}
